try {
    $("<link>").attr({href: "assets/waifu.css?v=1.4.2", rel: "stylesheet", type: "text/css"}).appendTo('head');
    $('body').append('<div class="waifu"><div class="waifu-tips"></div><canvas id="live2d" class="live2d"></canvas>'+
    		
    		'<div class="live_talk_input_body">'+
	'<div class="live_talk_input_name_body">'+
    	'<input name="name" type="text" class="live_talk_name white_input" id="AIuserName" autocomplete="off" placeholder="你的名字">'+
    '</div>'+
    '<div class="live_talk_input_text_body">'+
    	'<input name="talk" type="text" class="live_talk_talk white_input" id="AIuserText" autocomplete="off" placeholder="要和我聊什么呀？">'+
        '<button type="button" class="live_talk_send_btn" id="talk_send">发送</button>'+
    '</div>'+
'</div>'+

    		'<div class="waifu-tool"><span class="fui-home"></span> <span class="fui-chat"></span> <span class="fui-talk" id="showTalkBtn"></span> <span class="fui-eye"></span> <span class="fui-user"></span> <span class="fui-photo"></span> <span class="fui-info-circle"></span> <span class="fui-cross"></span></div></div>');
    $.ajax({url: 'assets/waifu-tips.js?v=1.4.2',dataType:"script", cache: true, async: false});
    $.ajax({url: 'assets/live2d.min.js?v=1.0.5',dataType:"script", cache: true, async: false});
    /* 可直接修改部分参数 */
    live2d_settings['hitokotoAPI'] = 'hitokoto.cn';  // 一言 API
    live2d_settings['modelId'] = 5;                  // 默认模型 ID
    live2d_settings['modelTexturesId'] = 1;          // 默认材质 ID
    live2d_settings['modelStorage'] = true;         // 不储存模型 ID
    
    live2d_settings['canAITalk'] = true;	//是否能够智能聊天
    
    /* 在 initModel 前添加 */
    initModel('assets/waifu-tips.json');
} catch(err) { console.log('[Error] JQuery is not defined.') }
